package com.bawei.module_car_space.http

import com.bawei.lib_common.base.BaseResponse
import com.bawei.module_car_space.model.EditModel
import com.bawei.module_car_space.model.SpaceModel
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path

interface SpaceApi {

    @GET("/api/parking-spaces/type/{spaceType}")
    suspend fun getSpaceData(@Path("spaceType")spaceType:String) : BaseResponse<SpaceModel>

    @POST("/api/parking-spaces")
    suspend fun addSpaceData(@Body body : EditModel) : BaseResponse<EditModel>

}